#ifndef TEST_TREE_H
#define TEST_TREE_H

#include "TESTS/utilities_for_tests.h"
#include "FEM/Containers/tree.h"

bool treeTest1()
{
    /*double m[4][4] = {{16,15,14,13},
                     {12,11,10,9},
                     {8,7,6,5},
                     {4,3,2,1}};
    Tree<2,1,double,int> matrix;
    matrix.rangeMin[0] = 0; //min row index
    matrix.rangeMin[1] = 0; //min column index
    matrix.rangeMax[0] = 3; //max row index
    matrix.rangeMax[1] = 3; //max column index
                            //now it should be 3x3
    int m00[] = {0,0};
    matrix.addElement(&m[0][0], m00);
    int m01[] = {0,1};
    matrix.addElement(&m[0][1], m01);
    int m02[] = {0,2};
    matrix.addElement(&m[0][2], m02);
    int m03[] = {0,3};
    matrix.addElement(&m[0][3], m03);

    int m10[] = {1,0};
    matrix.addElement(&m[1][0], m10);
    int m11[] = {1,1};
    matrix.addElement(&m[1][1], m11);
    int m12[] = {1,2};
    matrix.addElement(&m[1][2], m12);
    int m13[] = {1,3};
    matrix.addElement(&m[1][3], m13);

    int m20[] = {2,0};
    matrix.addElement(&m[2][0], m20);
    int m21[] = {2,1};
    matrix.addElement(&m[2][1], m21);
    int m22[] = {2,2};
    matrix.addElement(&m[2][2], m22);
    int m23[] = {2,3};
    matrix.addElement(&m[2][3], m23);

    int m30[] = {3,0};
    matrix.addElement(&m[3][0], m30);
    int m31[] = {3,1};
    matrix.addElement(&m[3][1], m31);
    int m32[] = {3,2};
    matrix.addElement(&m[3][2], m32);
    int m33[] = {3,3};
    matrix.addElement(&m[3][3], m33);*/
    return true;
}

#endif // TEST_TREE_H
